/*
 * DestinationHost.cpp
 *
 *  Created on: Jan 18, 2009
 *      Author: Andrzej Olchawa
 *      mailto: andrzejolchawa@gmail.com
 *      http://www.hardtechnology.org
 *      This is a part of the Armazd project, which is covered by
 *      GNU GPL v2 license.
 */

#include "DestinationHost.h"

DestinationHost::DestinationHost()
{
	port = 0;
}

DestinationHost::DestinationHost(string newHost, int newPort)
{
	host = newHost;
	port = newPort;
}

DestinationHost::DestinationHost(string newName, string newHost, int newPort)
{
	host = newHost;
	name = newName;
	port = newPort;
}

DestinationHost::~DestinationHost()
{
	port = 0;
}

void DestinationHost::setName(string newName)
{
	name = newName;
}

void DestinationHost::setHost(string newHost)
{
	host = newHost;
}

void DestinationHost::setPort(int newPort)
{
	port = newPort;
}

string DestinationHost::getName()
{
	return name;
}

string DestinationHost::getHost()
{
	return host;
}

int DestinationHost::getPort()
{
	return port;
}
